Public Class NewDataGridView
    Inherits DataGridView

    Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
        Return MyBase.ProcessCmdKey(msg, keyData)
        If msg.WParam.ToInt32() = CInt(Keys.Enter) Then
            SendKeys.Send(Keys.Enter)

        End If

        Return MyBase.ProcessCmdKey(msg, keyData)

    End Function
End Class
